#ifndef VIEW_H
#define VIEW_H

#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPushButton>

class View : public QWidget
{
    Q_OBJECT

private:
    int scoreVal,
        xCoord,
        yCoord;
    QGraphicsItem *health,
                  *money,
                  *score;
    QGraphicsScene *scene;
    QPixmap *background,
            *monster,
            *tower;

public:
    //This objects are declared public so the
    //controller can add event handlers to them
    QGraphicsView *view;
    QPushButton *quit, *grid;

    explicit View(QWidget *parent = 0);

public slots:
    //after the grid space is clicked and the
    //event is handled by the controller,
    //the control is passed to the view so the
    //enemy picture can be loaded on the screen
    void updateLocation(int, int);

};

#endif // VIEW_H
